package com.hualan.service;


import com.github.pagehelper.PageInfo;
import com.hualan.pojo.PageResult;
import com.hualan.pojo.Questions;

import java.util.List;

public interface QuestionsService {


    PageResult<Questions> getAllActiveQuestions(Integer page,Integer pageSize);
    int deleteByPrimaryKey(Long id);
    int batchDelete(List<Long> ids);

    int insertQuestion(Questions questions);

    PageInfo<Questions> selectByTitle(String title, int pageNum, int pageSize);

    Questions selectByPrimaryKey(Long id);
}
